package cn.dingli.market.common.exception;

import cn.dingli.market.common.constants.HttpStatus;
import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class SysException extends RuntimeException {
    private Integer code;

    public SysException(String message, Integer code) {
        super(message);
        this.code = code;
    }
    public SysException(String msg){
        super(msg);
        this.code= HttpStatus.CODE_ERROR;
    }
}
